import request from '@/utils/request'

export function getCourseTypeByPage(data) {
  return request({
    url: '/info/scourse_search',
    method: 'post',
    data,
  })
}

export function createCourseType(data) {
  return request({
    url: '/info/scourse_save',
    method: 'post',
    data,
  })
}

export function updateCourseType(data) {
  return request({
    url: '/info/scourse_editsave',
    method: 'put',
    data,
  })
}

export function deleteCourseType(ids) {
  return request({
    url: `/info/scourse_del`,
    method: 'post',
    data: {
      ids,
    },
  })
}
